package com.isdepci.project.gasEmission.domain;

import com.isdepci.framework.aspectj.lang.annotation.Excel;
import com.isdepci.framework.web.domain.BaseEntity;
import org.apache.commons.lang.builder.ToStringBuilder;
import org.apache.commons.lang.builder.ToStringStyle;
import java.math.BigDecimal;

/**
 * 原材料投入对象 tpf_material_inputs
 *
 * @author isdepci
 * @date 2023-09-01
 */
public class MaterialInputs extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long id;

    /** 材料类型(1数量/2财务估算) */
    @Excel(name = "材料类型(1数量/2财务估算)")
    private Integer materialType;

    /** 描述 */
    @Excel(name = "描述")
    private String description;

    /** 材料类型和计量单位 */
    @Excel(name = "材料类型和计量单位")
    private String materialAndUnit;

    /** 年消耗量 */
    @Excel(name = "年消耗量")
    private BigDecimal quantityPerYear;

    /** 材料引起排放的百分比 */
    @Excel(name = "材料引起排放的百分比")
    private String materialPercentage;

    /** 财务分类 */
    @Excel(name = "财务分类")
    private String financialCategory;

    /** 年价值（人民币） */
    @Excel(name = "年价值", readConverterExp = "人=民币")
    private BigDecimal valuePerYear;

    /** 关联首页表 */
    @Excel(name = "关联首页表")
    private Long infoId;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setMaterialType(Integer materialType)
    {
        this.materialType = materialType;
    }

    public Integer getMaterialType()
    {
        return materialType;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public void setMaterialAndUnit(String materialAndUnit)
    {
        this.materialAndUnit = materialAndUnit;
    }

    public String getMaterialAndUnit()
    {
        return materialAndUnit;
    }
    public void setQuantityPerYear(BigDecimal quantityPerYear)
    {
        this.quantityPerYear = quantityPerYear;
    }

    public BigDecimal getQuantityPerYear()
    {
        return quantityPerYear;
    }
    public void setMaterialPercentage(String materialPercentage)
    {
        this.materialPercentage = materialPercentage;
    }

    public String getMaterialPercentage()
    {
        return materialPercentage;
    }
    public void setFinancialCategory(String financialCategory)
    {
        this.financialCategory = financialCategory;
    }

    public String getFinancialCategory()
    {
        return financialCategory;
    }
    public void setValuePerYear(BigDecimal valuePerYear)
    {
        this.valuePerYear = valuePerYear;
    }

    public BigDecimal getValuePerYear()
    {
        return valuePerYear;
    }
    public void setInfoId(Long infoId)
    {
        this.infoId = infoId;
    }

    public Long getInfoId()
    {
        return infoId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("materialType", getMaterialType())
            .append("description", getDescription())
            .append("materialAndUnit", getMaterialAndUnit())
            .append("quantityPerYear", getQuantityPerYear())
            .append("materialPercentage", getMaterialPercentage())
            .append("financialCategory", getFinancialCategory())
            .append("valuePerYear", getValuePerYear())
            .append("infoId", getInfoId())
            .toString();
    }
}
